package com.principle.lsp;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * @author yangguanzan
 * @date 3/10/22
 * @description
 */
public class Father {

    public Collection doSomething(HashMap map) {
        return this.doSomethingWide(map);
    }

    public Collection doSomethingWide(Map map) {
        System.out.println("父类被调用");
        if(null != map){
            return map.values();
        }
        return null;
    }

    public Collection doSomethingType(HashMap map) {
        return this.doSomethingWide(map);
    }
}
